<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
    <head>
        <title>Venda</title>
    </head>
    <body>
        <h1>
            Página de Vendas
        </h1>
        <br/>
    <f:view>
        <h:form>
            <h:panelGrid columns="1" border="1">
                <h:outputText value=" Parabens  pela sua compra, o valor da mesma é:  #{vendaController.selectSale.valor}"/>
                Qual a forma de pagamento desejada?

     
                <h:selectOneRadio  value="#{vendaController.selectSale.formaDePagamento}" >
                    <f:selectItem  itemValue="cartaoDeCredito" itemLabel="Cartão de Crédito"/>
                    <f:selectItem itemValue="boleto" itemLabel=" Boleto Bancário"/>
                    <f:selectItem itemValue="aVista" itemLabel="A Vista" />
                </h:selectOneRadio>
            </h:panelGrid>
            <br />
          
            <h:commandButton action="#{vendaController.selectSale.formaDePagamento.toString()}" value=" Avançar " />
        </h:form>
    </f:view>
</body>
</html>
